Ext.define('Mis.store.demo.DemoStore', {
    extend: 'Ext.data.Store',
    model: 'Mis.model.demo.DemoModel',
    autoLoad: false,
    pageSize: 15,
    autoLoad: {start: 0, limit: 15},
    
    proxy: {
        type: 'ajax',
        api: {
        	create: basePath+'/demo/demoAction/add.action',
            read: basePath+'/demo/demoAction/demolist.action?newDate='+new Date().getTime(),
            update: basePath+'/demo/demoAction/update.action',
            remove: basePath+'/demo/demoAction/remove.action'
        },
        reader: {
            type: 'json',
            root: 'contatos',
            totalProperty: 'total',
            successProperty: 'success',
            messageProperty:'msg'
        }
//        ,
//        writer: {
//            type: 'json',
////            writeAllFields: true,
//            encode: true
////            root: 'contatos'
//        }
    }
});